/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.order.api.dto.OrderCommentDTO;
import com.pig4cloud.pigx.order.api.entity.OrderComment;
import com.pig4cloud.pigx.order.api.entity.OrderCommentDetail;
import com.pig4cloud.pigx.order.api.vo.OrderCommentVO;

/**
 * 订单评论
 *
 * @author pigx code generator
 * @date 2023-11-29 14:51:38
 */
public interface OrderCommentService extends IService<OrderComment> {

	/**
	 * 分页获取评论信息
	 * @param page
	 * @param orderCommentDTO
	 * @return
	 */
	IPage<OrderCommentVO> pageList(Page page, OrderCommentDTO orderCommentDTO);

	/**
	 * 买家评论
	 * @param orderCommentVO
	 * @return
	 */
	R buyerComment(OrderCommentVO orderCommentVO);

	/**
	 * 平台回复
	 * @param orderCommentDetail
	 * @return
	 */
	R platformReply(OrderCommentDetail orderCommentDetail);

	/**
	 * 修改平台回复
	 * @param orderCommentDetail
	 * @return
	 */
	R updatePlatformReply(OrderCommentDetail orderCommentDetail);

	/**
	 * 获取评论详情
	 * @return
	 */
	OrderCommentVO getOrderCommentById(Long id);

	/**
	 * 修改用户评论
	 * @param orderCommentVO
	 * @return
	 */
	boolean updateBuyerComment(OrderCommentVO orderCommentVO);

}
